const { defineConfig } = require("@vue/cli-service");

const path = require("path");

module.exports = defineConfig({
  publicPath: './', // 关键配置：使用相对路径
  lintOnSave: false,
  productionSourceMap: false,
  transpileDependencies: true,
  configureWebpack: {
    resolve: {
      alias: {
        "@": path.resolve(__dirname, "src"),
      },
    },
  },

  css: {
    loaderOptions: {
      sass: {
        implementation: require("sass"),
        sassOptions: {
          fiber: require("fibers"),
          indentedSyntax: false,
        },
        additionalData: `@use "@/assets/css/_globals.scss" as *;`,
      },
    },
  },
});
